package com.sdut.material.mapper;

import com.sdut.material.pojo.Repository;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Yu
 * @since 2022-04-20
 */
public interface RepositoryMapper extends BaseMapper<Repository> {

    int selectSumByMaterialId(int materialId);

    List<Repository> selectByPage(@Param("offset") Long offset, @Param("limit") Long limit);
    int selectTotalCount();
}
